package com.原子类;

import com.线程案例.threadLocal.User11;
import org.openjdk.jol.info.ClassLayout;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: LCG
 * @date: 2022-06-02 13:52:00
 * @description:  对原子类进行测试
 **/
public class Test原子类 {

    public static void main(String[] args) {

          Map<String,String> map=new HashMap<>();

          for (int i=0;i<100;i++){
              map.put("str"+i,i+"");
          }

          User11 user11=new User11();

          for (int i=0;i<1000;i++){
              user11.setUserName(user11.getUserName()+"你们好");
          }

          String s = ClassLayout.parseInstance(user11).toPrintable();

          System.out.println(s);

    }

}
